package cn.com.lyj6851.modules.mp.service.mapper;

import cn.com.lyj6851.common.mapper.CoreMapper;
import cn.com.lyj6851.modules.mp.domain.YdyArticle;
import org.apache.ibatis.annotations.Update;
import org.springframework.data.repository.query.Param;

/**
 * 公众号图文
 */
public interface YdyArticleMapper extends CoreMapper<YdyArticle> {
    // 访问加1
    @Update("update ydy_article set visit=visit+1 " +
            "where id=#{id}")
    int incVisitNum(@Param("id") int id);

}
